package com.yfbao.horizon.docker.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;

@Slf4j
@Component
@Order(3)
public class UpdateService {

    @Autowired
    private DataSource dataSource;

    @PostConstruct
    private void init() {
        log.info("begin do Updateinit");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("finished  Updateinit");
    }
}
